//
//  JAddImageModel.h
//  jhf
//
//  Created by 计海峰 on 2017/6/1.
//  Copyright © 2017年 计海峰. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ImageControlM.h"
#import "ButtonControlM.h"

@interface JAddImageModel : ImageControlM

//// 图片的名字
//@property (nonatomic, copy) NSString *imageName;

//// 图片资源
//@property (nonatomic, strong) UIImage *imageSource;

// 图片的占位图
//@property (nonatomic, copy) NSString *imagePlaceholder;

//// 图片的展位图
//@property (nonatomic, copy) NSString *imageUrl;

// 图片显示的位置
@property (nonatomic, assign) NSInteger idx;

// 是添加按钮
@property (nonatomic, assign) BOOL isAddBtn;

// 是选择的图片
@property (nonatomic, assign) BOOL isAddImg;

// 文件内容
@property (nonatomic, copy) NSString *fileContent;


@property (nonatomic, strong) ButtonControlM *deletBTControl;

// 本地图片转model
+ (JAddImageModel *)nameImgToImgModel:(NSString *)imgName;

// 网络图片
+ (JAddImageModel *)urlImgToImgModel:(NSString *)imgUrl;

// 图片文件
+ (JAddImageModel *)sourceImgToImgModel:(UIImage *)source;


// 服务器返回图片转model
//+ (NSMutableArray <JAddImageModel *> *)imgsModelToJImgModel:(NSArray<ImagesModel *> *)images;

@end
